﻿/// <summary>
/// https://leetcode-cn.com/problems/length-of-last-word/
/// </summary>
public class Solution
{
    public int LengthOfLastWord(string s)
    {
        return s.Split(' ', StringSplitOptions.RemoveEmptyEntries)[^1].Length;
    }
}